/**
 * @program: clms-second
 * @description: 日志控制层
 * @author: mitu_echo
 * @create: 2021-07-24 09:08
 **/

package com.second.system.controller;

import com.second.common.pojo.R;
import com.second.system.pojo.vo.ShowLoginfoVO;
import com.second.system.service.LoginfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/loginfo")
public class LoginfoController {

    @Autowired
    private LoginfoService loginfoService;

    @ApiOperation("查询全部的日志信息")
    @RequestMapping("/showAllLoginfo")
    public R showAllLoginfo(ShowLoginfoVO showLoginfoVO) {

        return loginfoService.showAllLoginfo(showLoginfoVO);
    }

    @ApiOperation("删除日志信息")
    @RequestMapping("/deleteLoginfoById")
    public R deleteLoginfoById(Integer logid) {

        return loginfoService.deleteLoginfoById(logid);
    }
}
